package com.zifeng.utils;

import java.util.Calendar;

public class DateUtils {
    // 获取某个月的最后一天
    public static int getLastDayOfMonth(int year, int month) {
        Calendar calendar = Calendar.getInstance();
        calendar.set(year, month - 1, 1);
        return calendar.getActualMaximum(Calendar.DAY_OF_MONTH);
    }
}
